/*
 *  $Id: WaterInsanity.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Water.Spells {
    public class WaterInsanity: SpellCard {
        public WaterInsanity(): base("001_w_s_water_insanity") {
            Level = CompleteLevel.Final;
            Element = ElementType.Water;
            Value = 100;
            AddManaCost(ElementType.Water, 5);
        }

        public override void DoAction(TargetArgs args) {
            DoWaterInsanity(args.Player);
            DoWaterInsanity(args.Player.Enemy);
        }
        private void DoWaterInsanity(Player owner) {
            owner.DispellAffects();
            foreach (SummonedObject summon in owner.GetSummonedObjects())
                summon.DispellAffects();
        }
    }
}
